Skip to content

fix(skill-manager): reach the login provider on a private installation - #1384

Merged
fiunchinho merged 4 commits into
mainfrom
skill-manager-identity-egress
Nov 12, 2026
Merged

fiunchinho merged 4 commits into
mainfrom
skill-manager-identity-egress

Conversation

@fiunchinho

@fiunchinho fiunchinho commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Problem

After #1381 (stable 4.179.1) the skill-manager installs on the public installations. On a private one (wallaby) its HelmRelease still fails with Helm install failed ... context deadline exceeded. The pod runs but never listens:

level=INFO msg="skill sources configured" sources=2 githubApp=false githubPin=false
level=WARN msg="Dex OIDC discovery failed, retrying" issuer=https://dex.wallaby.g8m.wepacloud.eu attempt=1 retry_in=250ms error="context deadline exceeded"

Attempts 2 and 3 fail the same way (30 s each). Its arguments already have the right client and --dex-issuer-url=https://dex.wallaby.g8m.wepacloud.eu: the pod cannot reach Dex.

Cause

On wallaby the Dex hostname resolves to an internal address, and the traffic ends at the in-cluster Gateway, whose Envoy listens on 10443. With Cilium's service translation, policy sees the destination as an in-cluster pod (the cluster entity) on 10443.

  • The skill-manager's own NetworkPolicy (chart 0.1.5, templates/networkpolicy.yaml) allows egress only to ipBlock 0.0.0.0/0 on 443. On Cilium that CIDR rule matches world only, never an in-cluster endpoint, so discovery times out.
  • The other managers reach Dex because the connectivity chart gives them agent-platform.idpEgress.cilium: the issuer's host by name on 443 and the cluster entity on 443 and 10443, in …-model-manager-egress, …-agent-manager-egress and the others. The skill-manager's values do not reach the connectivity release (omitKeys), so it had no such policy.
  • The skill-manager chart has no value that can fix this: egressCIDRs and dexEgress are ipBlocks or namespace selectors, and none of them matches the Gateway's pods.

Change

  • Meta chart: the skill-manager's MCP backend entry (networkPolicy.mcpBackends.skill-manager) carries identityProvider: {provider: dex, issuerUrl}.
    • The issuer is the one the skill-manager runs with: its own oauth.dex.issuerURL, else global.identity.issuerUrl, else muster's login.
    • It is set only while the skill-manager's OAuth and its chart's own NetworkPolicy are on.
    • muster's login is now read through one helper (agent-platform.identity.musterLogin). agent-platform.identity.apply and the skill-manager's issuer both call it.
    • The entry's pod selector follows the chart's own name rule (skill-manager.name: nameOverride, where empty means skill-manager, cut to 63 characters without a trailing hyphen).
  • Connectivity chart: a new template networkpolicy-mcp-backend-idp-egress.yaml renders, Cilium flavour only, a CiliumNetworkPolicy <release>-mcp-backend-<key>-idp-egress for each entry with identityProvider.
    • The policy selects the entry's podSelector (app.kubernetes.io/name: skill-manager). An entry without a podSelector fails the render.
    • It allows DNS through Cilium's DNS proxy and agent-platform.idpEgress.cilium, the same rules the managers get.
    • It only adds to the chart's own policy. Nothing renders with the skill-manager off, and nothing changes in the kubernetes flavour.
    • identityProvider is added to the mcpBackends schema.
  • docs/reference.md describes the skill-manager's egress to the login.

Tests

  • tests/verify-manager-identity.py (make verify-managers):
    • Every manager's pods (model-, agent-, vm-, cluster-, skill-manager) get the identity-provider rules (the issuer by name on 443, cluster on 443 and 10443).
    • With the skill-manager off, no policy gives its pods that egress.
    • The skill-manager's entry carries the issuer in the order the chart uses (muster's login, global.identity, then its own value wins). There is none with its OAuth off or with its own NetworkPolicy off.
    • The roster check now also fails for a component with an oauth block that the script does not render. The one exception is workspace-manager, with its reason.
    • On origin/main: FAIL: idp egress: no Cilium policy gives skill-manager's pods {'toFQDNs': [{'matchName': 'dex.ci.example.com'}], ...}; it has [].
  • tests/verify-idp-egress.py (make verify-idp-egress): an MCP backend entry with identityProvider gets the rules. It fails the render without a podSelector, and it renders nothing in the kubernetes flavour.
  • wallaby's values (placeholders for unrelated guards: kagent.database.postgres.urlFile, kagent.harness.snapshotLocation, and ingress.parentRefs[0].name for the connectivity render; --api-versions cilium.io/v2):
    • I rendered the meta chart, then the connectivity chart with the values of its HelmRelease.
    • agent-platform-connectivity-mcp-backend-skill-manager-idp-egress has the same two identity-provider rules as …-model-manager-egress and …-agent-manager-egress: toFQDNs dex.wallaby.g8m.wepacloud.eu on 443, and toEntities: [cluster] on 443 and 10443.
    • skill-manager 0.1.5 renders with the values the meta chart forwards to it.
  • make verify-managers verify-idp-egress verify-target verify-components-charts pass.
  • make golden-update: meta-ci-engine-off.yaml gains the entry's identityProvider.

Review

Finding Severity Result
With skill-manager.networkPolicy.enabled: false the new policy would make the pods' egress default-deny (GitHub, registries, OTLP blocked) Non-blocking Fixed: the entry is derived only while that policy is on; tested
The test did not pin the issuer order or the OAuth-off case Non-blocking Fixed: cases for muster's login, global.identity, its own issuer, OAuth off
muster's login rule was in two helpers Non-blocking Fixed: one helper, agent-platform.identity.musterLogin
The pod selector ignored nameOverride Nit Fixed
An explicitly empty skill-manager.nameOverride gave the selector app.kubernetes.io/name: "", which selects no pod, so the skill-manager's ingress policy stopped isolating it Blocking Fixed: the selector follows the chart's skill-manager.name rule (empty means skill-manager, cut to 63 characters without a trailing hyphen); verify-managers checks an empty, a short and a 64-character override
The "skill-manager off" check looked at policy names Nit Fixed: checks the rules that select its pods
The no-podSelector guard and the kubernetes flavour had no test Nit Fixed: in verify-idp-egress
idpEgress.cilium's cluster entity on 443/10443 opens every in-cluster pod, for every caller; toolchain-manager's egress to the login is not checked Non-blocking, older than this change Deferred: #1383

Deferred: narrowing the identity-provider egress to the Gateway's pods, and toolchain-manager's egress to the login, #1383.

Effect: private installations, where the login's hostname resolves to the in-cluster Gateway, on Cilium. The skill-manager reaches Dex and installs. On public installations its pods gain the same additional allow the managers have.

The skill-manager's MCP backend entry carries its issuer (identityProvider), and the connectivity chart renders a CiliumNetworkPolicy for its pods with the managers' identity-provider egress: the issuer's host by name on 443 and the cluster entity on 443 and 10443. On Cilium the chart's own ipBlock rule matches no in-cluster endpoint, so a Dex reached through the in-cluster Gateway was unreachable.

verify-manager-identity.py checks the identity-provider egress of every manager and fails a component with an oauth block that it does not check.
…Policy

The identity-provider entry is derived only while skill-manager.networkPolicy.enabled, so the added Cilium policy never makes the pods default-deny alone. muster's login is read through one helper (agent-platform.identity.musterLogin) by agent-platform.identity.apply and the skill-manager's issuer. The pod selector follows skill-manager.nameOverride. Tests pin the issuer order, the off switches, the podSelector guard and the kubernetes flavour.
The MCP backend entry's podSelector follows skill-manager.name: nameOverride, an empty one meaning skill-manager, cut to 63 characters without a trailing hyphen. An explicitly empty nameOverride no longer gives app.kubernetes.io/name: "", which selected no pod and left the skill-manager's ingress open.
@fiunchinho
fiunchinho marked this pull request as ready for review November 12, 2026 13:34
@fiunchinho
fiunchinho requested a review from a team as a code owner November 12, 2026 13:34
@circleci-architect

circleci-architect Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Published Helm chart agent-platform

4.179.2-r6cda4ff9t20261112134851hf701b64
Chart agent-platform
Version 4.179.2-r6cda4ff9t20261112134851hf701b64
OCI reference oci://gsoci.azurecr.io/charts/giantswarm/agent-platform:4.179.2-r6cda4ff9t20261112134851hf701b64
Digest sha256:f755bcf571660f8af790e8c973c34a71acc93d9a92ab9d8900a361a312bce45d
Registry public — gsoci.azurecr.io
Git catalog giantswarm-test-catalog (index)
Pull this chart
helm pull oci://gsoci.azurecr.io/charts/giantswarm/agent-platform --version 4.179.2-r6cda4ff9t20261112134851hf701b64

Posted by architect-orb · build 32167 · commit f701b64 · updated in place on every push

@circleci-architect

circleci-architect Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Published Helm chart agent-platform-connectivity

4.179.2-r6cda4ff9t20261112134851hf701b64
Chart agent-platform-connectivity
Version 4.179.2-r6cda4ff9t20261112134851hf701b64
OCI reference oci://gsoci.azurecr.io/charts/giantswarm/agent-platform-connectivity:4.179.2-r6cda4ff9t20261112134851hf701b64
Digest sha256:680a9760d94fffa44946fb6d9b0fc17f24bb000a750e27c814ed3c349b51ee95
Registry public — gsoci.azurecr.io
Git catalog giantswarm-test-catalog (index)
Pull this chart
helm pull oci://gsoci.azurecr.io/charts/giantswarm/agent-platform-connectivity --version 4.179.2-r6cda4ff9t20261112134851hf701b64

Posted by architect-orb · build 32168 · commit f701b64 · updated in place on every push

verify-default-agent pins the skill-manager's MCP backend entry; it now carries identityProvider.
@fiunchinho
fiunchinho merged commit 5d3a1c4 into main Nov 12, 2026
16 checks passed
@fiunchinho
fiunchinho deleted the skill-manager-identity-egress branch November 12, 2026 14:07
teemow added a commit that referenced this pull request Nov 13, 2026
* origin/main: (21 commits)
  feat(default-agent): make the General Assistant proactive (#1399)
  fix(connectivity): bound MCPServer descriptions, mirror kagent's and describe mcp-kubernetes (#1398)
  feat: support agent-manager 3.x and on-demand GitHub grants (#1375)
  feat(default-agent): tag the General Assistant general and platform (#1397)
  feat(connectivity): describe the kagent MCPServer for the developer portal (#1390)
  docs(skills): guard agent creation against silent wrong keys, skipped listings and wrong model routes (#1392)
  fix(network-policies): admit only the owning Gateway's Envoy proxy, not every Envoy pod (#1394)
  chore: move the ATS default and the docs example ModelConfig to Claude Sonnet 5.5 (#1395)
  refactor(organizations): one source for agent-platform-operator's names in both charts (#1389)
  feat(agent-manager): take agent-manager 2.24.0 or later, for the Dev Portal's organization pages (#1371)
  feat(helm): annotate component HelmReleases and OCIRepositories with the owning team (#1385)
  fix(skill-manager): reach the login provider on a private installation (#1384)
  fix(skill-manager): take the OAuth client from muster's login, like the other managers (#1381)
  ci: render every component on a schedule against main and the latest releases (#1377)
  docs(skills): show a sign-in muster refuses instead of calling core_auth_login (#1376)
  chore(deps): update gsoci.azurecr.io/giantswarm/agent-manager docker tag to v2.24.0 (#1370)
  test(organizations): wait for every admission policy and RBAC object before the dry runs (#1373)
  fix(tenants): let every organization member read its members (#1369)
  feat: ship the default agent (General Assistant) and the platform skills with the chart (#1265)
  test(organizations): prove that an organization admin's Secret delete never answers with the Secret, and pin the admin mirrors (#1366)
  ...

# Conflicts:
#	helm/agent-platform/README.md
#	helm/agent-platform/examples/customer-bom.yaml
#	helm/agent-platform/templates/_helpers.tpl
#	helm/agent-platform/values.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant